package unit5;

import java.util.Date;

import unit4.Employee;

public class ManagerTest {
	public static void main(String[] args) {
//		construct a Manager object 
		Manager boss=new Manager("mike", 80000, new Date());
		boss.setBonus(5000);
		Employee[] staff=new Employee[3];
//		fill the staff array with Manager and Employee object 
		staff[0]=boss;
		staff[1]=new Employee("Tony", 50000, new Date());
		staff[2]=new Employee("Alice", 40000,new Date());
		
//		print out information about all Employee objects
		for(Employee e:staff)
			System.out.println("name="+e.getName()+":::::salary="+e.getSalary());
	}
}
